package com.wd.tw.config;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

import java.util.Map;
import java.util.List;

/**
 * @className: AppConfig
 * @description: TODO 类描述
 * @author: liumingkun
 * @date: 2024/11/17
 **/

@Component
@ConfigurationProperties(prefix = "api")
public class AppConfig {

    private String baseApi;

    private String baseImgApi;

    private String wsUrl;

    private Map<Integer, String> map;

    private Map<String, Map<String, List<Integer>>> signalMap;

    private Map<String, List<Integer>> signalBit;

    private Boolean signal;

    private Integer offset;

    private Integer num;

    private Map<String,Map<Integer,Integer>> channelMap;

    public String getBaseApi() {
        return baseApi;
    }

    public void setBaseApi(String baseApi) {
        this.baseApi = baseApi;
    }

    public String getBaseImgApi() {
        return baseImgApi;
    }

    public void setBaseImgApi(String baseImgApi) {
        this.baseImgApi = baseImgApi;
    }

    public Map<Integer, String> getMap() {
        return map;
    }

    public void setMap(Map<Integer, String> map) {
        this.map = map;
    }

    public Map<String, List<Integer>> getSignalBit() {
        return signalBit;
    }

    public void setSignalBit(Map<String, List<Integer>> signalBit) {
        this.signalBit = signalBit;
    }

    public Boolean getSignal() {
        return signal;
    }

    public void setSignal(Boolean signal) {
        this.signal = signal;
    }

    public Map<String, Map<String, List<Integer>>> getSignalMap() {
        return signalMap;
    }

    public void setSignalMap(Map<String, Map<String, List<Integer>>> signalMap) {
        this.signalMap = signalMap;
    }

    public String getWsUrl() {
        return wsUrl;
    }

    public void setWsUrl(String wsUrl) {
        this.wsUrl = wsUrl;
    }

    public Integer getOffset() {
        return offset;
    }

    public void setOffset(Integer offset) {
        this.offset = offset;
    }

    public Integer getNum() {
        return num;
    }

    public void setNum(Integer num) {
        this.num = num;
    }

    public Map<String, Map<Integer, Integer>> getChannelMap() {
        return channelMap;
    }

    public void setChannelMap(Map<String, Map<Integer, Integer>> channelMap) {
        this.channelMap = channelMap;
    }
}
